package com.novatialabs.qttt.gwt.client;

import com.google.gwt.event.shared.HandlerRegistration;
import com.google.gwt.event.shared.HasHandlers;

/**
 * A widget that implements this interface provides registration for
 * {@link GameDisplayHandler} instances.
 */
public interface HasGameDisplayHandlers extends HasHandlers {

  /**
   * Adds a {@link GameDisplayEvent} handler.
   * 
   * @param handler
   *          the game handler
   * @return {@link HandlerRegistration} used to remove this handler
   */
  HandlerRegistration addGameDisplayHandler(GameDisplayHandler handler);

}
